POV-Ray : Newsgroups : povray.general : Nested #while statements : Nested #while statements Server Time
16 Nov 2024 01:16:25 EST (-0500)
  Nested #while statements  
From: Daniel Harris
Date: 5 Nov 1998 09:41:24
Message: <3641BA46.BB567AC6@netcom.co.uk>
Dear Pov'ers,
I was wondering if povray 3.02 can handle nested #while statements the
following code only outputs a single line of links in the z direction...

#declare X=0
#declare Y=0
#declare Z=0
#while (X<10)
       #while (Y<10)
              #while (Z<10)
                            object { link translate <X*1.75, Y*1.75,
Z*1.75> }
                            #declare Z=Z+1
              #end
              #declare Y=Y+1
       #end
       #declare X=X+1
#end

Please tell me if there is something blantantly wrong with this or if
povray doesn't do nested #while statements.

Dan.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.